package com.peak.distribution.manager.order;

import java.util.Map;

import com.peak.distribution.entity.order.DisOrder;
import com.peak.distribution.enums.OrderStatus;
import com.peak.spring.boot.api.manager.BaseManager;

public interface DisOrderManager extends BaseManager<DisOrder> {

	/**
	 * 统计代理商订单数量
	 * @param agentId
	 * @return
	 */
	Map<String, Integer> countOrderByStatus(Integer agentId);
	
	/**
	 * 统计所有订单某些状态的数量
	 * @param orderStatus
	 * @return
	 */
	Map<String, Integer> countOrderByStatus(OrderStatus... orderStatuses);
}
